﻿using AiShow.BLL;
using AiShow.Model.OperResult;
using Quartz;
using System.Threading.Tasks;

namespace AiShow.WebSite
{
    internal class SyncVideosJob:IJob
    {
        public async Task Execute(IJobExecutionContext context)
        {
            VideoManager videoManager = new VideoManager();
            OperResult<int> syncResult = await videoManager.SyncVideos();
            // 日志记录
            //log.Info("已同步" + syncResult.ReadResult() + "条数据，时间：" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
        }
    }
}